﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Configuration;
using Gollie.Administration;
using Gollie.Administration.Service;
using Gollie.Administration.Service.Tasks;
using Gollie.Service;

namespace TstAdministration
{
	class Program
	{
		static void Main(string[] args)
		{
			ServiceHelper.SetCulture();
			
			TaskConfiguration config = new TaskConfiguration();
			/*
			ExpiredPendingPayments task = new ExpiredPendingPayments();
			task.Run(CancellationToken.None, null);

			
			OldLogFiles task = new OldLogFiles();
			task.Run(CancellationToken.None, null);

			*/
			
			MonthClose monthClose = new MonthClose();

			monthClose.Run(CancellationToken.None, config["monthclose"]);
			
			/*
			BackupMySql backup = new BackupMySql();

			backup.Run(CancellationToken.None, null);
			 */
		}
	}
}
